import { TABCHANGE, ADDIMG, ADDTEXT, ADDFOODSORCE, ADDHORCECOM } from "../../actionType";


const TabChangeAction=(item)=>({
    type:TABCHANGE,
    payload:{
        item:item
    }
})
const AddCommentImgAction = (file)=>({
    type:ADDIMG,
    payload:{
        file
    }
})
const AddTextAction =(text)=>({
    type:ADDTEXT,
    payload:{
        text
    }
})
const AddFoodSorceAction=(id)=>({
    type:ADDFOODSORCE,
    payload:{
        id
    }
})
const AddHorsemanCommentAction=(index)=>({
    type:ADDHORCECOM,
    payload:{
        index
    }
})
export { TabChangeAction, AddCommentImgAction, AddTextAction, AddFoodSorceAction, AddHorsemanCommentAction }